//
//  Macro.h
//  ZCProject
//
//  Created by Zheng on 2016/10/25.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#ifndef Macro_h
#define Macro_h

//屏幕尺寸
#define kMS_Bounds [UIScreen mainScreen].bounds
//屏幕宽度
#define kMS_Width [UIScreen mainScreen].bounds.size.width
//屏幕高度
#define kMS_Height [UIScreen mainScreen].bounds.size.height
//宽度等比
#define kWScale(R) (kMS_Width/375.f)*R
//高度等比
#define kHScale(R) (kMS_Height/667.f)*R
//RGB颜色
#define RGB(R,G,B,A) [UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:A/1.0]
//16进制颜色
#define kHexadecimal(S) [UIColor colorFromHexRGB:S]
//TabBar高度
#define kTB_Height 49.f
//NavBar高度
#define kNB_Height 64.f
//字体大小
#define kFont(S) [UIFont systemFontOfSize:S]
//字体等比大小
#define kWFont(S) (kMS_Width>320)?(kMS_Width>375?kFont(S*(414/375.f)):kFont(S*(375/375.f))):kFont(S*(320/375.f))
//粗体字体大小
#define kBFont(S) [UIFont boldSystemFontOfSize:S]
//粗体字体等比大小
#define kWBFont(S) (kMS_Width>320)?(kMS_Width>375?kBFont(S*(414/375.f)):kBFont(S*(375/375.f))):kBFont(S*(320/375.f))
 
//全局颜色
#define kLYQBlack kHexadecimal(@"000000")
#define kLYQBlue kHexadecimal(@"39a1e8")
#define kLYQGray kHexadecimal(@"84919a")
#define kLYQSystemGray RGB(200, 199, 204, 1)


#endif /* Macro_h */
